﻿namespace MovieTicket.WebApi.Controllers
{
    using System.Web.Http;

    using MovieTicket.WebApi.BBL.BusinessObjects;

    /// <summary>
    /// Class TicketsController
    /// </summary>
    public class TicketsController : ApiController
    {
        #region Public Methods and Operators

        /// <summary>
        /// Posts the specified ticket.
        /// </summary>
        /// <param name="ticket">The ticket.</param>
        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise</returns>
        public bool Post(TicketPurchaseBO ticket)
        {
            // implement save logic here. for the sake of simplicity
            // we assume that the ticket is saved properly and 
            // return a success boolean.
            return true;
        }

        #endregion
    }
}